package com.gtw.modules.dao;

import com.gtw.modules.entity.TbCommissionRatio;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface TbCommissionRatioDao  extends BaseDao<TbCommissionRatio> {

    int deleteByPrimaryKey(Integer id);

    int insert(TbCommissionRatio record);

    int insertSelective(TbCommissionRatio record);

    TbCommissionRatio selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbCommissionRatio record);

    int updateByPrimaryKey(TbCommissionRatio record);

    /**
     * 查询会员抽佣首购比例
     * @return
     */
    TbCommissionRatio queryByUserFisrt();

    /**
     * 查询会员抽佣复购比例
     * @return
     */
    TbCommissionRatio queryByUserOld();

    /**
     * 查询代理抽佣比例
     * @return
     */
    TbCommissionRatio queryByProxy();
}